package com.w2cx.selenium.testCase;

import org.testng.Assert;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

public class testDestinationManage extends CaseBase {

    //
    @Test
    @Parameters({"destiName"})
    public void testAddDestination(String destiName){

        dmp.addDestination(destiName);

        Assert.assertTrue(dmp.addDestinationSuccess(destiName),"添加目的地失败!");
        System.out.println("添加目的地成功！");

    }

    @Test
    public void testSearchDestination(){
        dmp.searchDestination();
        Assert.assertTrue(dmp.searchSuccess(),"搜索目的地失败！");
        System.out.println("搜索目的地成功！");
    }


}
